home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / RAVE SDK 1.5 MacOS / Projects / Empty Engine Code / TtBitmapStore.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  2.4 KB  |  84 lines  |  [TEXT/MPCC]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        TtBitmapStore.c                                             **
  4.  **                                                                          **
  5.  **     Purpose:     Empty rasterizer drawing engine.                         **
  6.  **                 Methods for bitmap New, Detach and Delete.                 **
  7.  **                                                                          **
  8.  **     Author:        Mike W. Kelley                                             **
  9.  **                                                                          **
  10.  **                    2/3/95    Revised for 0.9 SDK release                         **
  11.  **                                                                          **
  12.  **     Copyright (C) 1994-95 Apple Computer, Inc.  All rights reserved.     **
  13.  **     Apple Computer Confidential                                             **
  14.  **                                                                          **
  15.  *****************************************************************************/
  16.  
  17. /* System */
  18. #include <stdlib.h>
  19. #include <math.h>
  20.  
  21. #include "RAVE.h"
  22. #include "RAVE_system.h"
  23. #include "TtTinselTown.h"
  24.  
  25. /**************************************************************************************
  26.  * Allocate a bitmap.
  27.  *************************************************************************************/
  28.  
  29. TQAError TtBitmapNew (
  30.     unsigned long        flags,                /* Mask of kQABitmap_xxx flags */
  31.     TQAImagePixelType    pixelType,            /* Depth, color space, etc. */
  32.     const TQAImage        *image,                /* Image */
  33.     TQABitmap            **newBitmap)        /* (Out) Newly created TQABitmap, or NULL on error */ 
  34. {
  35.     /*
  36.      * Allocate new bitmap memory, and assign new bitmap pointer to 'newBitmap'.
  37.      * For now we assign NULL and return an error (as this function isn't
  38.      * yet implemented).
  39.      */
  40.     
  41.     *newBitmap = NULL;
  42.     return (kQANotSupported);
  43. }
  44.  
  45. /**************************************************************************************
  46.  * Detach a bitmap (by copying the image data).
  47.  *************************************************************************************/
  48.  
  49. TQAError TtBitmapDetach (
  50.     TQABitmap            *bitmap)            /* Previously allocated by QABitmapNew() */
  51. {
  52.     TTtBitmap            *myBitmap;
  53.     
  54.     myBitmap = (TTtBitmap *) bitmap;
  55.  
  56.     /*
  57.      * Copy the image data. Not implemented, so for now we return an error.
  58.      */
  59.     
  60.     return (kQANotSupported);
  61. }
  62.  
  63. /**************************************************************************************
  64.  * Delete a bitmap.
  65.  *************************************************************************************/
  66.  
  67. void TtBitmapDelete (
  68.     TQABitmap            *bitmap)            /* Previously allocated by QABitmapNew() */
  69. {
  70.     TTtBitmap            *myBitmap;
  71.     
  72.     myBitmap = (TTtBitmap *) bitmap;
  73.     
  74.     /*
  75.      * Delete the bitmap. Not yet implemented.
  76.      */
  77. }
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.